package com.ja.openchat.viewmodels;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;


public class RechargeSuccessViewModel extends BaseViewModel {
    public ObservableField<String> rechargeStatus = new ObservableField<>("充值成功");
    public ObservableField<String> money = new ObservableField<>("¥100.00");
    public ObservableField<String> rechargeBalance = new ObservableField<>("余额充值");
    public RechargeSuccessViewModel(@NonNull Application application) {
        super(application);
    }

    //提交按钮的点击事件
    public BindingCommand confirmOnClickCommand = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            finish();
        }
    });
}
